home *** CD-ROM | disk | FTP | other *** search
Text File | 1991-07-22 | 684 b | 33 lines | [TEXT/TCEd] |
- #
- # MarkPasFunctions
- #
- # Marks all of the Pascal functions in the window "~1" with the
- # name of the function. This will produce a list of marks
- # which contain a complete list of functions in the file, from
- # which you can select and immediatly jump to that function
- #
- # The expected format for a function is:
- # <spaces or tabs> "procedure"
- # OR
- # <spaces or tabs> "function"
- #
-
- searchpat = "^[ \t]*procedure|^[ \t]*function"
-
- Select(•,~1)
-
- while (Search("p", searchpat, NULL, ~1))
-
- Select([§]≥0, ~1)
- Search("p", "[A-Za-z_][A-Za-z0-9_]*", NULL, ~1)
-
-
- len = Length(Select(§, ~1))
- If (len >= 32)
- Select([§]≤0:[§]≤-30, ~1)
- End
-
- Mark("y", §, Select(§, ~1), ~1)
-
-
- End